<ion-view view-title="项目自查" devin-hide-tabs="true">
  <ion-nav-buttons side="right">
    <span class="nav-right-button" ng-click="save()">保存</span>
  </ion-nav-buttons>

  <ion-content class="my-bg">
    <ion-list>
      <ion-item style="border-bottom: lightgray 1px solid;margin-bottom: 8px;padding: 8px!important;">
        <img src="img/check-title-icon.png" style="width: 30px;"/>
        <span class="span">项目自查</span>
        <div style="float: right!important;padding: 3px" class="button button-positive button-delivery" ng-click="allGo()">全部完成</div>
      </ion-item>
      <!-- 配重基础 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/check-title-icon.png" style="width: 30px;"/>
          <span class="span">配重基础</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;border-bottom: 0px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '配重基础'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>

      <!-- 支架检查 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/check-title-icon.png" style="width: 30px;"/>
          <span class="span">支架检查</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '支架'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>

      <!-- 电池板检查 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/check-title-icon.png" style="width: 30px;"/>
          <span class="span">电池板检查</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '电池板'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>

      <!-- 逆变器 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/icon-bunch.png" style="width: 30px;"/>
          <span class="span">逆变器</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '逆变器'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>
      <!-- 配管布线 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/check-title-icon.png" style="width: 30px;"/>
          <span class="span">配管布线</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '配管布线'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>
      <!-- 防雷接地 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/check-title-icon.png" style="width: 30px;"/>
          <span class="span">防雷接地</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '防雷接地'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item><!-- 交流箱 -->
      <ion-item class="item-module-padding">
        <ion-item class="item-con item-module-content-first">
          <img src="img/icon-lightning.png" style="width: 30px;"/>
          <span class="span">交流箱</span>
        </ion-item>
        <ion-item class="item-con item-content-notFirst" style="height: 60px;"
                  ng-repeat="value in checkList.spmsCheckLists"
                  ng-if="value.checkModule == '交流箱'"
                  ng-click="setFieldFinished(value)">
          <p class="item-content-p item-content-p-vartical">{{value.checkItem}}</p>
          <div class="finish-checkbox">
            <img ng-src="{{value.checkResult == 'TRUE' ? 'img/checkbox_checked.png' : 'img/checkbox_unchecked.png'}}" />
          </div>
        </ion-item>
      </ion-item>
    </ion-list>
    <div class="page-bottom"></div>
  </ion-content>
</ion-view>
